package com.cskaoyan.javase.controlflow.selective3.switchs;

/**
 * @description: switch选择语句
 * @author: wuguidong@cskaoyan.onaliyun.com
 **/

/**
 *switch(expression){ 表达式
 *     case value1:
 *     statement1;
 *     break;
 *     case value2:
 *     statement2;
 *     break;
 *     ...
 *    	default:
 *     statement;
 *     break;
 * }
 *
 * 列举出你喜欢的明星
 *
 *
 *
 */
public class Demo {
    public static void main(String[] args) {
        String starName = "杨超越";

        switch (starName){
            case "杨超越":
                System.out.println("我喜欢杨超越！");
                break;
            case "周杰伦":
                System.out.println("我喜欢周杰伦");
                break;
        }
    }
}
